﻿using SqlSugar;
using TiaoTiaoCode.BasicDbCore;

namespace TiaoTiaoCode.AutoUpdate.DbCore.Entities
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [SugarTable("sys_user", TableDescription = "用户信息表")]
    public class SysUser : BaseSimplyEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(ColumnName = "user_name", Length = 100, IsNullable = true, ColumnDescription = "用户名")]
        public string UserName { get; set; } = default!;

        /// <summary>
        /// 登录名
        /// </summary>
        [SugarColumn(ColumnName = "login_name", Length = 100, ColumnDescription = "登录名")]
        public string LoginName { get; set; } = default!;

        /// <summary>
        /// 密码盐
        /// </summary>
        [SugarColumn(ColumnName = "salt", Length = 100, ColumnDescription = "密码盐")]
        public string Salt { get; set; } = default!;

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnName = "password", Length = 100, ColumnDescription = "密码")]
        public string Password { get; set; } = default!;
    }
}
